import request from '@/utils/request'

// 查询排队预约列表
export function listQueueReservation(query) {
  return request({
    url: '/vqms/queue/reservation/list',
    method: 'get',
    params: query
  })
}

// 查询排队预约详细
export function getQueueReservation(id) {
  return request({
    url: '/vqms/queue/reservation/' + id,
    method: 'get'
  })
}

// 新增排队预约
export function addQueueReservation(data) {
  return request({
    url: '/vqms/queue/reservation/add',
    method: 'post',
    data: data
  })
}

// 修改排队预约
export function updateQueueReservation(data) {
  return request({
    url: '/vqms/queue/reservation/update',
    method: 'put',
    data: data
  })
}

// 删除排队预约
export function delQueueReservation(id) {
  return request({
    url: '/vqms/queue/reservation/' + id,
    method: 'delete'
  })
}